Return to doc.sitecore.com

  Icon
Prev Next

Use for "Themed" icons, which are provided by Sitecore. This field is mostly used in the sitecore web interfaces or modules which run in Sitecore.

Folders with themed icons are stored in the following folder:

\sitecore\shell\Themes\Standard\
/upload/sdn5/reference/field reference/standard data types/icon1.png
 
 

Most of the categories (Applications, Business and so on) have 4 size directories: 16x16, 24x24, 32x32, and 48x48.

The Sitecore interfaces select a size that’s appropriate based on where the icon is displayed (larger for up in the toolbar, smaller for in the content hierarchy). The interfaces do this by switching the size folder but keeping the rest of the path the same.

Client view:

The Icon field inserts a textbox. Clicking on the selector button will open the /sitecore/shell/Themes/ folder from where the user can upload and place icons or choose from the existing ones.   

/upload/sdn5/reference/field reference/standard data types/icon3.png

/upload/sdn5/reference/field reference/standard data types/icon2.png

You can specify a folder the Open icon button will open by using the Source field.

Valid default value:

Any text string which represents a path pointing to an icon.

Source:

Use the source field to specify a relative path to a folder which contains icons. For example:

/sitecore/shell/Themes/Standard/Business/32x32

For information about accessing the field values programmatically, please follow the links below:

Accessing Icon field value in C#

Accessing Icon field value in XSLT


Prev Next